<?php
class Fail implements State {
    protected $state_name;
    public function __construct()
    {
        $this->state_name = "失败时";
    }

    public function WomanAction(Woman $woman)
    {
        echo "<br>{$woman->getName()}{$this->state_name}：哭晕在厕所<br>";
    }
    public function ManAction(Man $man)
    {
        echo "<br>{$man->getName()}{$this->state_name}：喝闷酒，谁也劝不动<br>";
    }
}